package com.sina.weibo.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View.MeasureSpec;
import android.widget.RelativeLayout;

public class UserInfoItemView extends RelativeLayout
{
  private boolean isStart = false;
  private int mHeight = 0;
  private int mWidth = 0;

  public UserInfoItemView(Context paramContext, AttributeSet paramAttributeSet)
  {
    super(paramContext, paramAttributeSet);
  }

  private void startSetMeasure(int paramInt)
  {
    if (this.isStart)
    {
      int i = View.MeasureSpec.getSize(paramInt);
      int j = this.mHeight;
      setMeasuredDimension(i, j);
    }
  }

  protected void onMeasure(int paramInt1, int paramInt2)
  {
    super.onMeasure(paramInt1, paramInt2);
    startSetMeasure(paramInt1);
  }

  public void setSize(int paramInt1, int paramInt2, boolean paramBoolean)
  {
    this.isStart = paramBoolean;
    this.mWidth = paramInt1;
    this.mHeight = paramInt2;
  }
}